<?php

namespace app\admin\controller\mall;

use app\common\controller\AdminController;
use think\App;

/**
 * @ControllerAnnotation(title="mall_specs")
 */
class Specs extends AdminController
{

    use \app\admin\traits\Curd;

    public function __construct(App $app)
    {
        parent::__construct($app);

        $this->model = new \app\common\model\MallSpecs();

        $this->assign('getStatusList', $this->model->getStatusList());

    }

    public function getSpecsList()
    {
        $lists = $this->model
            ->field('id,title')
            ->where('status', 1)
            ->select()
            ->toArray();
        $this->success('ok', $lists);
    }
    public function getBySpecsId(){
        $specs_id = $this->request->param('specs_id',0,'intval');
    }

}